package com.tc;

import com.tc.framework.MyApplicationContext;
import com.tc.service.OrderService;

/**
 * @Auther: tianchao
 * @Date: 2020/11/2 13:37
 * @Description:
 */
public class Test {

    public static void main(String[] args) {
        MyApplicationContext applicationContext = new MyApplicationContext(AppConfig.class);
        OrderService orderService = (OrderService)applicationContext.getBean("orderService");
        OrderService orderService2 = (OrderService)applicationContext.getBean("orderService");
        System.out.println(orderService==orderService2);
    }
}
